.PHONY: shm_open
vmem: vmem.c
	-@$(CC) -o $@ $^
	-@./$@
	-@$(RM) $@

fork: fork.c
	-@$(CC) -o $@ $^
	-@./$@
	-@$(RM) $@
execve: execve.c
	-@$(CC) -o $@ $^
	-@./$@
	-@$(RM) $@

wait: wait.c
	-@$(CC) -o $@ $^
	-@./$@
	-@$(RM) $@
pipe: pipe.c
	-@$(CC) -o $@ $^
	-@./$@
	-@$(RM) $@

shm_open: shm_open1.c shm_open2.c
	-@$(CC) -o shm_open1 shm_open1.c
	-@$(CC) -o shm_open2 shm_open2.c
	-@./shm_open1 & ./shm_open2
	-@$(RM) shm_open1 shm_open2

mmap: mmap.c
	-@$(CC) -o $@ $^
	-@./$@
	-@$(RM) $@

mqueue: mqueue.c
	-@$(CC) -o $@ $^
	-@./$@
	-@$(RM) $@

signal: signal.c
	-@$(CC) -o $@ $^
	-@./$@
	-@$(RM) $@
